package com.housediyadmin.events.goodsEvents
{	
	import flash.events.Event;
	
	import mx.collections.ArrayCollection;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2010/12/17
	 */
	public class GetGoodsByBrandIDEvent extends Event
	{
		public static const GET_GOODS_BY_BRANDID:String = "getGoodsByBrandID";
		public static const UPDATE_GOODS_BRAND:String = "updateGoodsBrand";
		
		public var brandId:int;
		public var goodsBrandArray:ArrayCollection;
		
		/**
		 * 根据brandId得到相对应的Goods信息，只包括Goods的名字
		 * @param type 必选参数
		 *             GET_GOODS_BY_BRANDID ：根据BrandId得到Goods
		 * 	           UPDATE_GOODSNAMES：更新GoodsModel里面的goodsNames
		 * @param brandId：int 必选参数，对应于GET_GOODS_BY_BRANDID
		 * @param goodsNames 可选参数，对应于UPDATE_GOODSNAMES
		 * 
		 */			
		public function GetGoodsByBrandIDEvent(type:String, brandId:int, goodsBrandArray:ArrayCollection = null)
		{
			super(type);
			this.brandId = brandId;
			this.goodsBrandArray = goodsBrandArray;
		}
		
		override public function clone():Event
		{
			return new GetGoodsByBrandIDEvent(type, brandId, goodsBrandArray);
		}
	}
}